home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / libs / unixlib.lha / unix / src / dir_data.h < prev    next >
C/C++ Source or Header  |  1996-11-10  |  479b  |  34 lines

  1. #ifndef DIR_DATA_H
  2. #define DIR_DATA_H
  3.  
  4. #include <sys/dir.h>
  5.  
  6. typedef struct
  7. {
  8.   char *dirname;
  9.   BPTR cdir;
  10.   struct FileInfoBlock fib;
  11.   struct idirect *files, *pos;
  12.   int seeked;
  13. } iDIR;
  14.  
  15. struct idirect
  16. {
  17.   struct idirect *next;
  18.   /* Info needed for stat */
  19.   long handler;
  20.   long numblocks;
  21.   long size;
  22.   struct DateStamp date;
  23.   long type;
  24.   long protection;
  25.   struct direct entry;
  26. };
  27.  
  28. extern iDIR *last_info;
  29. extern struct idirect *last_entry;
  30.  
  31. BPTR _get_cd(void);
  32.  
  33. #endif
  34.